import request from '@/utils/request'


// 获取联想建议（自动补全）
export const searchSuggestion = (q) => {
    return request.get(`/v1_0/suggestion?q=${q}`) 
}


//获取搜索结果

export const searchResult = (params) => {
    return request.get(`v1_0/search`, {
        params
    }) 
}